package iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Koizumi Sinya
 * @date 2018/04/02. 15:49
 * @edithor
 * @date
 */
public class MyList<T> implements MyListImpl<T> {
    private List<T> list = new ArrayList<>();

    @Override
    public void add(T obj) {
        list.add(obj);
    }

    @Override
    public void remove(T obj) {
        list.remove(obj);
    }

    @Override
    public ICustomIterator<T> getIterator() {
        return new ICustomIterator<>(list);
    }
}
